package com.cpecc.manager.wuzi;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cpecc.dao.wuzi.JiYaoDao;
import com.cpecc.model.wuzi.BaoFei;
import com.cpecc.model.wuzi.JiYao;

@Service
@Transactional
public class JiYaoManager {

	@Autowired
	private JiYaoDao jiYaoDao;
	
	public void save(JiYao jiYao){
		jiYaoDao.save(jiYao);
	}
	
	public boolean cover(JiYao jiYao){
		return jiYaoDao.cover(jiYao);
	}
	
	public JiYao get(String id){
		return jiYaoDao.get(id);
	}
	
	public boolean delete(String id){
		return jiYaoDao.delete(id);
	}
	
	public List<JiYao> list(BaoFei baoFei){
		return jiYaoDao.list(baoFei);
	}
}
